package abstractclass;

import java.util.HashMap;
/**
 * @author: cuiyutian1
 * @date: 2021/10/9 18:31
 * @description:
 */
public class Test {

    public static void main(String[] args) {

        HashMap<String, AbstractTest> stringAbstractTestHashMap = new HashMap<>(3);
        stringAbstractTestHashMap.put("HeLi", new HeLiCheck());
        stringAbstractTestHashMap.put("XinHui", new XinHuiTest());


        for (String key : stringAbstractTestHashMap.keySet()) {
            AbstractTest abstractTest = stringAbstractTestHashMap.get(key);
            abstractTest.check("AbstractTest");

        }
    }
}
